import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:get/get.dart';
import 'package:logger/logger.dart';
import 'package:sports_new/controller/live/qkd_player_logic.dart';
import 'package:sports_new/entity/match/match_live_entity.dart';
import 'package:sports_new/view/home/inner_video/inner_video.dart';
import 'package:sports_new/view/match_detail/live/match_live_view.dart';
import 'package:sports_new/widgets/circular.dart';

class InnerVideoExtension extends HtmlExtension{
  final int id;
  final QkdPlayerLogic logic;
  InnerVideoExtension({required this.id,required this.logic});

  @override
  Set<String> get supportedTags => {"video"};

  @override
  InlineSpan build(ExtensionContext context) {
    return WidgetSpan(
      child: Circular(
        radius: 8,
        clipBehavior: Clip.antiAlias,
        child: InnerVideoWidget(
          logic: logic,extensionContext: context
        )
      )
    );
  }
}
